package com.b2c.product.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import content.common.DateFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 品类表
 * @TableName mall_spec_group
 */
@TableName(value ="mall_spec_group")
@Data
public class SpecGroup implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 品类编号
     */
    @TableField(value = "spg_id")
    private Integer spgId;

    /**
     * 品类名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 
     */
    @TableField(value = "create_time")
    @JsonFormat(pattern = DateFormat.FORMAT_PATTERN_SECODE)
    @DateTimeFormat(pattern = DateFormat.FORMAT_PATTERN_SECODE)
    private LocalDateTime createTime;

    /**
     * 
     */
    @TableField(value = "update_time",fill = FieldFill.UPDATE)
    @JsonFormat(pattern = DateFormat.FORMAT_PATTERN_SECODE)
    @DateTimeFormat(pattern = DateFormat.FORMAT_PATTERN_SECODE)
    private LocalDateTime updateTime;

    /**
     * 
     */
    @TableField(value = "create_user_id")
    private Integer createUserId;

    /**
     * 逻辑删除
     */
    @TableField(value = "status")
    private Integer status;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


}